package homework04;

class Student{
	private static int nextId=1;
	private int id;
	static int ID=0;
	
	public Student(int a,int b){
		this.id=a;
		Student.ID=b;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
}

public class Prac1 {
	public static void main(String[] args){
		Student A = new Student(1,2);
		System.out.println(A.ID);
		System.out.println(A.getId());
		Student B = new Student(3,4);
		System.out.println(A.ID);
		System.out.println(A.getId());
		
	}
}
